<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='申请人信息'}}
{{assign var="app" value='Info'}}
{{assign var="act" value='modify'}}
{{assign var="sex" value='sex'|C}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
{{include file="{{$smarty.const.PLUG}}verify/verify.html"}}
</head>

<body>

	{{include file="include/sidebar.html"}}

	<div class="body_right">
	<div id="content">
	<div class="search">
		<ul class="bread">
			<li>◆ {{$title}}管理 －> {{$result.title|default:'添加'}}</li>
		</ul>
	</div>
			
		<!--内容 S-->
		<form action="" name="form" class="verify" method="post">
		<input type="hidden" name="id" value="{{$result.id}}"/>
		<table class="table table-bordered tablest modify">
		  <tbody>
		  	<tr class="ttitle">
				<td colspan="5"> >> 申请人基本信息</td>
			</tr>
			<tr>
				<td width="10%">姓名：</td>
				<td width="20%">{{$result.username}}</td>
				<td style="text-align:right">性别：</td>
				<td width="15%">{{$sex[$result.sex]}}</td>
				<td rowspan="4" width="20%"  style="text-align:center"><img src="{{$result.photo|photo}}" width="110px" height="160px;"></td>
			</tr>
			<tr>
				<td width="10%">出生日期：</td>
				<td width="20%">{{$result.params.birthdate}}</td>
				<td style="text-align:right">民族：</td>
				<td width="15%">{{$result.params.nation}}</td>
			</tr>
			<tr>
				<td width="10%">党派：</td>
				<td width="20%">{{$result.params.member}}</td>
				<td style="text-align:right">毕业院校及专业：</td>
				<td width="15%">{{$result.college_name}}</td>
			</tr>
			<tr>
				<td width="10%">最后学历/学位：</td>
				<td width="20%">{{$result.params.degree}}</td>
				<td style="text-align:right">职称</td>
				<td width="15%">{{$result.params.professional}}</td>
			</tr>
			<tr>
				<td width="10%">现任职务：</td>
				<td width="20%">{{$result.params.job}}</td>
				<td style="text-align:right">工作单位：</td>
				<td width="35%" colspan="2">{{$result.params_tutor.unit}}</td>
			</tr>
			<tr>
				<td width="10%">固定电话：</td>
				<td width="20%">{{$result.params_tutor.telephone}}</td>
				<td style="text-align:right">单位网址：</td>
				<td width="35%" colspan="2">{{$result.params_tutor.unit_url}}</td>
			</tr>
			<tr>
				<td width="10%">手机号码：</td>
				<td width="20%">{{$result.mobile}}</td>
				<td style="text-align:right">微信：</td>
				<td width="35%" colspan="2">{{if $result.params.weixin}}{{$result.params.weixin}}{{elseif $result.params_tutor.weixin}}{{$result.params_tutor.weixin}}{{/if}}</td>
			</tr>
			<tr>
				<td width="10%">电子邮箱：</td>
				<td width="20%">{{$result.email}}</td>
				<td style="text-align:right">QQ：</td>
				<td width="35%" colspan="2">{{$result.params.qq}}</td>
			</tr>
			<tr>
				<td width="10%">联系地址及邮编：</td>
				<td colspan="4">{{$result.params.address}}</td>
			</tr>
			<tr class="ttitle">
				<td colspan="5"> >> 工作经历</td>
			</tr>
			<tr>
				<td style="text-align:center" width="30%" colspan="2">起止时间</td>
				<td style="text-align:center">工作单位</td>
				<td colspan="2" style="text-align:center">职务</td>
			</tr>
			{{if $result.params_tutor.work_experience}}
			{{foreach from=$result.params_tutor.work_experience item=val key=key}}
			<tr>
				<td style="text-align:center" width="30%" colspan="2">{{$val.start_date}} 到 {{$val.end_date}}</td>
				<td style="text-align:center">{{$val.work_place}}</td>
				<td colspan="2" style="text-align:center">{{$val.work_job}}</td>
			</tr>
			{{/foreach}}
			{{else}}
			<tr>
				<td colspan="5" style="text-align:center">暂无工作经历</td>
			</tr>
			{{/if}}
			<tr>
				<td width="10%">导师类型：</td>
				<td colspan="4">{{foreach from=$result.params_tutor.tutor_type item=val key=key}}{{$val}}、{{/foreach}}</td>
			</tr>
			<tr class="ttitle">
				<td colspan="5"> >> 获奖证书情况</td>
			</tr>
			<tr>
				<td style="text-align:center" width="30%" colspan="2">创业导师证书情况</td>
				<td style="text-align:center" colspan="3">职务</td>
			</tr>
			{{if $result.params_tutor.certificate}}
			{{foreach from=$result.params_tutor.certificate item=val key=key}}
			<tr>
				<td style="text-align:center" width="30%" colspan="2">{{$val.start_date}} 到 {{$val.end_date}}</td>
				<td style="text-align:center" colspan="3">{{$val.content}}</td>
			</tr>
			{{/foreach}}
			{{else}}
			<tr>
				<td colspan="5" style="text-align:center">暂无获奖证书情况</td>
			</tr>
			{{/if}}
			<tr class="ttitle">
				<td colspan="5"> >> 新创企业或创新创业团队指导经历情况</td>
			</tr>
			<tr>
				<td style="text-align:center" width="30%" colspan="2">起止时间</td>
				<td style="text-align:center">工作单位</td>
				<td colspan="2" style="text-align:center">职务</td>
			</tr>
			{{if $result.params_tutor.team_guide}}
			{{foreach from=$result.params_tutor.team_guide item=val key=key}}
			<tr>
				<td style="text-align:center" width="30%" colspan="2">{{$val.start_date}} 到 {{$val.end_date}}</td>
				<td style="text-align:center">{{$val.team_name}}</td>
				<td colspan="2" style="text-align:center">{{$val.reward}}</td>
			</tr>
			{{/foreach}}
			{{else}}
			<tr>
				<td colspan="5" style="text-align:center">暂无新创企业或创新创业团队指导经历情况</td>
			</tr>
			{{/if}}
			<tr class="ttitle">
				<td colspan="5"> >> 新创企业或创新创业团队投资经历</td>
			</tr>
			<tr>
				<td style="text-align:center" width="30%" colspan="2">起止时间</td>
				<td style="text-align:center">工作单位</td>
				<td colspan="2" style="text-align:center">职务</td>
			</tr>
			{{if $result.params_tutor.invest}}
			{{foreach from=$result.params_tutor.invest item=val key=key}}
			<tr>
				<td style="text-align:center" width="30%" colspan="2">{{$val.start_date}} 到 {{$val.end_date}}</td>
				<td style="text-align:center">{{$val.team_name_new}}</td>
				<td colspan="2" style="text-align:center">{{$val.condition}}</td>
			</tr>
			{{/foreach}}
			{{else}}
			<tr>
				<td colspan="5" style="text-align:center">暂无新创企业或创新创业团队投资经历情况</td>
			</tr>
			{{/if}}
			<tr class="ttitle">
				<td colspan="5"> >> 擅长领域</td>
			</tr>
			<tr>
				<td width="10%">所属行业：</td>
				<td colspan="4">{{foreach from=$result.params_tutor.industy item=val key=key}}{{$val}}、{{/foreach}}{{if $result.params_tutor.other_industy}}（其他：{{$result.params_tutor.other_industy}}）{{/if}}</td>
			</tr>
			<tr>
				<td width="10%">专业特长：</td>
				<td colspan="4">{{foreach from=$result.params_tutor.speciality item=val key=key}}{{$val}}、{{/foreach}}{{if $result.params_tutor.other_speciality}}（其他：{{$result.params_tutor.other_speciality}}）{{/if}}</td>
			</tr>
			<tr>
				<td width="10%">喜欢的导师俱乐部活动：</td>
				<td colspan="4">{{foreach from=$result.params_tutor.tutor_club item=val key=key}}{{$val}}、{{/foreach}}{{if $result.params_tutor.other_tutor_club}}（其他：{{$result.params_tutor.other_tutor_club}}）{{/if}}</td>
			</tr>
			<tr>
				<td width="10%">申请人：</td>
				<td width="20%">{{$result.username}}</td>
				<td style="text-align:right">申请时间：</td>
				<td width="35%" colspan="2">{{$result.params_tutor.apply_time}}</td>
			</tr>

			<!-- <tr>
				<td>项目名称：</td>
				<td colspan="5">{{$result.params.team}}</td>
			</tr>
			<tr>
				<td>项目团队：</td>
				<td colspan="5">{{$result.params.team_name}}</td>
			</tr> -->
			<!-- <tr>
				<td>推荐：</td>
				<td>
			  		{{html_radios name=hot options=array('否','是') checked=$result.hot|default:0}}
				</td>
			</tr> -->
			<!-- <tr class="ttitle">
				<td colspan="6"> >> 申请人合伙人信息</td>
			</tr>
			<tr>
				<td width="15%">人数：</td>
				<td>姓名</td>
				<td>性别</td>
				<td>手机号</td>
				<td>学院</td>
				<td>班级</td>
			</tr>
			{{if $result.params.company}}
			{{foreach from=$result.params.company item=val key=key}}
			<tr>
				<td>{{$key+1}}</td>
				<td>{{$val.name_c}}</td>
				<td>{{$val.sex_c}}</td>
				<td>{{$val.phone_c}}</td>
				<td>{{$val.xy_n}}</td>
				<td>{{$val.grade_n}}</td>
			</tr>
			{{/foreach}}
			{{else}}
			<tr>
				<td colspan="6" style="text-align:center">暂无合伙人</td>
			</tr>
			{{/if}}
			<tr class="ttitle">
				<td colspan="6"> >> 申请人指导老师信息</td>
			</tr>
			<tr>
				<td width="15%">老师：</td>
				<td>姓名</td>
				<td>性别</td>
				<td>学院</td>
				<td>职位</td>
				<td>研究方向</td>
			</tr>
			{{if $result.params.teacher}}
			<tr>
				<td>1</td>
				<td>{{$result.params.teacher.name_t}}</td>
				<td>{{$result.params.teacher.sex_te}}</td>
				<td>{{$result.params.teacher.xy_name_t}}</td>
				<td>{{$result.params.teacher.job_t}}</td>
				<td>{{$result.params.teacher.process_te}}</td>
			</tr>
			{{else}}
			<tr>
				<td colspan="6" style="text-align:center">暂无选择指导老师</td>
			</tr>
			{{/if}}
			<tr class="ttitle">
				<td colspan="6"> >> 项目详情</td>
			</tr>
			<tr>
				<td>项目意义：</td>
				<td colspan="5"><textarea class="input-xlarge" style="width:700px; height:150px;">{{$result.params.team_mean}}</textarea></td>
			</tr>
			<tr>
				<td>项目内容：</td>
				<td colspan="5"><textarea class="input-xlarge" style="width:700px; height:150px;">{{$result.params.team_content}}</textarea></td>
			</tr> -->
		  </tbody>
		</table>
		</form>
		<!--内容 E-->
		<div class="bottom_button">
			<div class="submit btn btn-info" onclick="pass({{$result.id}},{{$result.power_1}},{{$result.power_2}},{{$smarty.session.role_id}});"><i class="icon-ok icon-white"></i>审核通过</div>
		</div>

		<form action="" class="verify" method="post" id="mail" name="myform">
		<input type="hidden" name="id" value="{{$result.id}}"/>
		<input type="hidden" name="role" value="{{$smarty.session.role_id}}">
		<input type="hidden" name="power_1" value="{{$result.power_1}}">
		<input type="hidden" name="power_2" value="{{$result.power_2}}">
		<table class="table table-bordered tablest modify">
		<tbody>
		  	<tr class="ttitle">
				<td colspan="5"> >> 审核不通过的原因</td>
			</tr>
			<tr>
				<td>原因(将通过邮件的方式发送)：</td>
				<td colspan="5"><textarea class="input-xlarge" style="width:700px; height:150px;" name="content"></textarea></td>
			</tr> 
		</tbody>
		</table>
		</form>
		<div class="bottom_button">
			<div class="submit btn btn-info" onclick="failed();"><i class="icon-ok icon-white"></i>审核不通过</div>
		</div>
	<!-- 历史记录 -->
	{{if $result}}
	<div class="search">
		<h4>历史记录</h4>
		{{foreach from=$result.log.tutor item=val key=key}}
			{{$key+1}}. {{if $val.date}}{{$val.date}}{{elseif $val.date_t}}{{$val.date_t}}{{/if}}
			{{if $val.detail!=''}}
				<i id='icon{{$key+1}}' class='btn btn-default icon-plus' onClick="return change('{{$key+1}}');"></i>
				<div id="content{{$key+1}}" style="display:none;">
					<div class="search" style="background-color:#ccffff">
						{{$val.detail|replace:'\r\n':'<br/>'}}
					</div>
				</div>
			{{/if}}<br />
		{{/foreach}}
	</div>
	{{/if}}
</div>
</div>
{{include file="{{$smarty.const.PLUG}}ueditor/ueditor.html"}}
</body>
<script type="text/javascript">
	//审核通过
  	function pass(id,power_1,power_2,role_id){
  		if(confirm('您确定审核通过？')){
  			$.post('{{"index.php?app={{$app}}&act=pass"|URL}}',{'id':id,'power_1':power_1,'power_2':power_2,'role_id':role_id},function(result){
		        if(result.statusCode=='200'){
					ui.success(result.message);
					parent.location.reload();
		        }else if(result.statusCode=='300'){
		        	ui.error(result.message);
		        }else if(result.statusCode=='301'){
		        	ui.alert(result.message);
		        }
		    },'json');
  		}
  	}

  	//审核不通过
  	function failed(){
  		var params = $("#mail").serialize();
  		if(confirm('您确定审核不通过？')){
  			$.post('{{"index.php?app={{$app}}&act=failed"|URL}}',params,function(result){
		        if(result.statusCode=='200'){
					ui.success(result.message);
					parent.location.reload();
		        }else if(result.statusCode=='300'){
		        	ui.error(result.message);
		        }	
		    },'json');
  		}
  	}

	//日志显示隐藏切换
	function change($key){
		$(document).ready(function(){
			var key = $key;
			$("#icon" + key).toggleClass('icon-minus');
			$("#content" + key).toggle();
		});
	}
</script>
</html>